<?php
/*
 * Created on 22.5.2006
 */
 
class pFiles_url extends cGadget 
{
	public $physic = false;
	
	function getXHTML($view, $value) 
	{
		switch ($this->getAttr("rel")) {
			case "web" : return $this->cms->file->getRelative($this->cms->url,$this->cms->siteDir);
			case "cms" : return $this->cms->file->getRelative($this->cms->url,$this->cms->dir);
		}
	}
	
}
 
?>